package org.atlantis.grosbeak.cable.meta;

import java.io.Writer;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;

/**
 * HttpServletResponse对象的封装接口。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">SeeNoEvil</a>
 * 
 */
public interface ResponseAware {

	/**
	 * 相当于{@link HttpServletResponse#getOutputStream()}。
	 * 
	 * @return
	 */
	ServletOutputStream getOutputStream();

	/**
	 * 相当于{@link HttpServletResponse#getWriter()}
	 * 
	 * @return
	 */
	Writer getWriter();

	/**
	 * 获得当前的HttpServletResponse对象。
	 * 
	 * @return
	 */
	HttpServletResponse getSelf();
}
